package com.sfpay.merchant.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfpay.merchant.auth.entity.system.SysUser;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author fangchen
 * @since 2022-07-12
 */
public interface ISysUserService extends IService<SysUser> {

    String checkLoginNameUnique(String loginName);

    String checkPhoneUnique(SysUser currentUser);

    String checkEmailUnique(SysUser currentUser);

    int updateUserInfo(SysUser currentUser);

    SysUser selectUserById(Long userId);

    int resetUserPwd(SysUser user);

    List<SysUser> selectUserList(SysUser user);

    int insertUser(SysUser user);

    int updateUser(SysUser user);
}
